a[href $='.pdf']{ /*ends with*/
   padding-right: 18px;
   background: transparent url(icon_pdf.gif) no-repeat center right;
}

span[id ^='google']{ /*start with*/
   background-color: green;
}

